#ifndef _H_S_PROTOCOL_END_POINT_H_
#define _H_S_PROTOCOL_END_POINT_H_

#include "../typedefine.h"
#include "SProtocolAddress.h"

namespace QWER
{
	QDLL_EXPORT QSTRUCT SProtocolEndPoint
	{
	public:
#ifndef _USING_CLI
		SProtocolEndPoint();
#endif
		SProtocolEndPoint(CONST_REF(SProtocolAddress) sAddress, UINT64 qwURIOrSession);

		inline CONST_REF(SProtocolAddress) GetAddress() QCONST_FUNC{ return m_sAddress; }
		inline UINT64 GetURIOrSession() QCONST_FUNC{ return m_qwURIOrSession; }

	private:
		QINIT_ONLY SProtocolAddress m_sAddress;
		QINIT_ONLY UINT64 STRUCT_MEMBER_DEFINE(m_qwURIOrSession, 0);
	};
}

#endif
